package com.sky.mapper;

import com.sky.entity.AddressBook;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author wangqi
 * @date 2024/1/4 09:07
 */
@Mapper
public interface AddressBookMapper {
    List<AddressBook> list(Long userId);

    void insert(AddressBook addressBook);

    void updateUnDefault(AddressBook addressBook);

    void updateDefault(AddressBook addressBook);

    AddressBook findAddressById(Long id);

    void update(AddressBook addressBook);

    void delete(Long id);
}
